import request from '@/utils/request'

// 创建技师健康档案
export function createHealthy(data) {
  return request({
    url: '/mini/healthy/create',
    method: 'post',
    data: data
  })
}

// 更新技师健康档案
export function updateHealthy(data) {
  return request({
    url: '/mini/healthy/update',
    method: 'put',
    data: data
  })
}

// 删除技师健康档案
export function deleteHealthy(id) {
  return request({
    url: '/mini/healthy/delete?id=' + id,
    method: 'delete'
  })
}

// 获得技师健康档案
export function getHealthy(id) {
  return request({
    url: '/mini/healthy/get?id=' + id,
    method: 'get'
  })
}

// 获得技师健康档案分页
export function getHealthyPage(query) {
  return request({
    url: '/mini/healthy/page',
    method: 'get',
    params: query
  })
}

// 导出技师健康档案 Excel
export function exportHealthyExcel(query) {
  return request({
    url: '/mini/healthy/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
